<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/8/7
  Time: 15:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.sun.bean.Books" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    %>
    <!-- 基准路径 -->
    <base href="<%=basePath%>">
    <title>Title</title>
    <style>
        tr {
            height: 40px;
            line-height: 40px;
        }
         body{
             background: url("/img/21.jpg");
             background-size: 100%;
         }
        h1{
            margin-top: 80px;
            color: fuchsia;
        }
        table{
            height: 200px;
            width: 600px;
            color: 	#00BFFF;
        }
    </style>
</head>
<body>
<h1 align="center" >图&nbsp;&nbsp;&nbsp;书&nbsp;&nbsp;&nbsp;详&nbsp;&nbsp;&nbsp;情</h1>
<table border="1PX" align="center" width="500px" cellspacing="0">
    <tr>
        <th>编号</th>
        <td>${bk.id}</td>
    </tr>
    <tr>
        <th>书贴</th>
        <td><img src="/photo/${bk.photo}" width="40px" height="40px"></td>
    </tr>
    <tr>
        <th>书名</th>
        <td>${bk.bname}</td>
    </tr>
    <tr>
        <th>价格</th>
        <td>${bk.price}</td>
    </tr>
    <tr>
        <th>作者</th>
        <td>${bk.author}</td>
    </tr>
    <tr>
        <th>出版社</th>
        <td>${bk.press}</td>
    </tr>
    <tr>
        <th>日期</th>
        <td>${bk.pubdate}</td>
    </tr>
    <tr>
        <th>数量</th>
        <td>${bk.number}</td>
    </tr>
    <tr>
        <th>类型</th>
        <td>${bk.calssift}</td>
    </tr>
    <tr>
        <th>状态</th>
        <td>
            <c:if test="${bk.area eq 1}">热销</c:if>
            <c:if test="${bk.area eq 2}">完结</c:if>
            <c:if test="${bk.area eq 3}">下架</c:if>
            <c:if test="${bk.area eq 4}">付费</c:if>
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <button onclick="history.back()">返回</button>
        </td>
    </tr>
</table>
</body>
</html>
